Modification to the code

30/05/06
Edited track.inc to force the checking of current lattitude and longitude against the marker values
recompiled code and put it in the finished code directory.

07/06/06
created file upboot.inc to modify the bootloader to either version 4 or 5 depending on whether it was 2 or 3 previously.
reflash.inc modified so that the bootloader exits if wrong characters are seen on the serial port.
Built file and created customer reflash version for the DL2 and DL1

13/06/06
Edited DL1 accel.inc file to force reading of serial ports during the acceleration reads at all time
New build file created, DL1 130606.hex

14/06/06
Removed a line from pretrig.inc which would caused errors when exiting a pretrigger loop, it caused the DL1 to behave as if the pretrigger loop had not been completed even when it had

15/06/06
Added lines to Main.inc to clear pre_sample_number at the start of the postrigger time
Not doing so would cause different lengths of data to be stored during the first minute of posttrigger

Added variables to determine the status of the run

20/06/06
Added run information, channel 2 data 
Required work
Add a channel at the start of the run which shows the current logger set up, to include, why the run started (autostart, button press, pretrigger), autostart and stop conditions, pre and post trigger conditions
Add channel at end of run to show why the run ended.

        Status_Start_Source
Reason why the logger started logging in the first place.  Values are
        .1   Button press
        .2   Autostart
        .3   Starting pretrigger loop
        .4   GSM command

        Status_Stop_Source
Reason why logging stopped
        .1   Button press
        .2   Autostop condition met
        .3   post trigger expired
        .4   low battery voltage
        .5   low buffer space
        .6   GSM command
        .7   Disk full

        Status_Exit_Pretrigger_Loop
Why the pretrigger loop was exited
        .1   Button press
        .2   Autostart
        
        Status_Pretrigger_Time
Time of pretrigger, in minutes
        Status_Postrigger_Time
Time of postrigger in minutes
        Status_Autostart_Source
        Status_Autostart_Condition
        Status_Autostart_Value_0
        Status_Autostart_Value_1
        Status_Autostop_Source
        Status_Autostop_Condition
        Status_Autostop_Value_0
        Status_Autostop_Value_1

22/6/06
Modified buffer storage routine to update space pointer half way through the routine

23/6/06
Reflashed DL2 with modified code
Created modified reflash code for DL2.
DL2 IMSA reflash.hex

27/6/06
Removed the extended RPM channel information from run data

15/9/06
Modified storage routine to just skip data if there is a buffer problem (interrupt.inc)

29/9/06
Modified main.inc to clear the bit which says marker file is modified before start of run.

22/11/06
Modified DL1V2AC.inc to check for storing sample number before storing accelerometer data.

7/2/07
Included looping mode in to the software to delete existing files

1/3/07 
modified ADC8.inc to fix a but which occurred if a sampling rate other than 100Hz was used on ADC8

27/3/07
Modified looping mode to only update which file to overwrite when the previous file was ended properly using the posttrigger, autostrop or button press

27/4/07
decoding of serial data modified so all serial data stored with GSM mode off, with GSM mode on RT data is decoded and commands acted upon.

7/5/07
Modified wheelout.inc to fix the scaling on the frequency outputs

25/5/07
Tested and fixed the upgrader utility for upgrading to 6G DL1
modified GPS configuration utility to send out teh GPS commands twice
Changed software firmware version to 9.

10/7/07
Fixed setupgps routine to correctly set unit to 5Hz on MKI DL1 boards with V1 bootloader

3/8/07
Added file uptime.inc to update the start of run file time stamp when using the loop mode.

6/8/07
Fixed RS232 configuration to give correct baud rate at 9.6kbaud on new DL1
Modified GPS output routine to work with latest modules (4g and 8g setup modes)
Re-wrote GPS set up routine to improve code space efficiency.

20/9/07
Slowed down DASH2 config sending routine to ensure both DA1 and DA2 get set up properly.
Further modifications to GPS output routine, now tested to set up properly 
Added  Canoe mode to use slower GPS dynamic setup

TESTING  'DL1 MKII customer reflash V9 070920.hex'
Programmed DL1MKII with 070507, log test file, file OK.
Reflashed DL1, log test file, file OK.


TESTING  'DL1 MKI customer relfash V9 070920.hex'
Programmed directly on to early unit, serial number 125, bootloader 1.  test file OK.
Programmed booloader 1 unit with production 070507, didn't work (wrong setup for bootloader1)
Reflashed with 070920. log data file
Programmed bootloader 5 unit with production 070507, serial number 1254,
Had to add line in to conf.inc to set RCON,7 before it would work, wouldn't config GPS module
Logged data, no errors.
Reflash with 070920, logged data, no errors.

Programmed unit with 060627 customer reflash code.
Programmed logger 1254 with 070216, ran code.
Reflash with 070920, reflash OK, power cycle, log data. No errors


 
27/9/07
Added code to accelerometer initialisation to ensure that enabled options byte is read from eeprom before configuring accelerometers

09/10/07
Added code to DL1V2AC.inc to read enabled options before setting up the accelerometers
Changed DL1V2 version to 10

19/11/07
Fixed bug with reading firmware version on DL2 version
Changed DL2V1 and V2 version to 10

21/11/07
Modified the NAV2 message to change the GPS configurations, limiting the max number of SV's to 8 and increasing minimum elevation to 15 degrees

29/11/07
Fixed and tested for NMEA only logging mode in DL1 mode.

3/12/07
Modifications to remove time channel data from serial input
Fixed bug in serial decode routines
Disabled Z axis accelerometer output on serial port
Changed DL2V2 and DL1V2 version to 11.

6/2/08
Added information for decoding DVR instructions.
Added code to reset external serial port if overflow detected whilst no card is present

14/2/08
Added disable external channels data to wheel and RPM output routines

16/3/08
Added interval lap and sector times
Reset all ADC and accelerometer output values on the serial port every 0.64s
Change sensitivity on lap timing heading detection
Change version to 13 on DL1


31/3/08
Fixed lat and vertical accelerometer polarity on V2 DL2, changed version number to 12.

3/6/08
Modified GPS config routines to work with 4T module on DL2.  Changed bootloader to 7 for DL2 with 4T
Changed DL2 version number to 13

14/7/08
Added accelerometer calibration mode to DL1 to correct for offsets on accelerometers in MK2 units, changed version number to 14

21/7/08
Removed synchronisation of GPS data with accelerometer data on DL2 as it was causing problems with 4T modules

28/7/08
Increased limit for speed accuracy threshold on DL1 MK2 and DL2 MK2 autostart and stop 
V2DL1 version number changed to 15
DL2 version number changed to 13

4/7/08
Fixed bug in Serial output routine where initial values were not loaded in for the frequency of output
Fixed bug in reading of config where the serial rate of analogue channel 16 was ignored.
Changed version number for DL2 to 15, DL1 mk1 to 12 and DL1 mk2 to 16

8/7/08
Fix to the mode which keeps logging until a fixed time after conditions were last met. It would only work with the serial decoding disabled.
Changed version number for DL2 to 16, DL1 mk1 to 13 and DL1 mk2 to 17

28/8/08
Modifications to the track marker adding routines, should speed up adding markers on DL2 and DL1
Fixed a bug which would only detect the first marker file on the card
DL2 version changed to 17, DL1 mk1 to 14 and DL1 mk2 to 18

29/8/08
Implemented changes to message number 2 to show why a marker addition failed.

1/9/08
Bug fix to the command decoding which caused add marker messages to be missed.
DL2 V19
DL1 MK1 V16
DL1 MK2 V20

8/9/08
Bug fix in the run information message to show start/stop reasons
DL2 V20
DL1 MK1 V17
DL1 MK2 V21

18/11/08
Modified time output so that ms time of week is always transmitted just before position
changed all version numbers to 23.

16/11/08
Added NED velocities to the serial decoder routines, changed version to 24.

16/3/09
Added in Gumpert mode which sets fixed settings of :

Oil T>110
Water T >105
RPM (serial) >7200rpm
Analog 1 set by autostart values
accelerometer >1.5g vector

This is activated by setting the autostart source to be analogue channel 1
Modified length of VIDEO4 command decoder. Changed version number to 25

1/4/09
Added Z axis acceleration storage to DL2 version of the software
Changed DL2 version number to 26.

21/4/09
Tested GPS output data order, changed DL1 version number to 26

5/6/09
Modified GPS module configuration order to improve startup performance on new GPS modules,
Changed DL1 version number to 27

16/6/09
Added code to allow reflashing of DASH3 through the DL1
commented out the loop mode to hopefully remove a bug which causes folders to be created but no files
Changed DL1 mk2 and DL2 version number to 28

1/7/09
Build version without loop mode for MK1 DL1
Changed DL1 mk1 version number to 28

22/9/09
Modification to the time offset output to increase output from 1 hour / bit to 1/4 hour per bit.
All version numbers changed to 29

14/10/09
Modification to detecting track markers to double the distance so that at high lattitudes it is more accepting of errors in position data
All version numbers changed to 30

13/11/09
Bug fix so that autostart/autostop on analogue channels works with decode serial data turned off. Changed to version 32

24/11/09
Increased the limit on acceptable values of heading for marker additions, Previously heading accuracy needed to be better than 8.5 degrees, it is now better than 30 degrees.

27/11/09
Modified the transmission routine for the DASH configuration files
Requires DASH firmware version 9 2 0 or later
Changed version number to 34

18/2/2010
DL2 version modified to add in calibration for accelerometers
Version number changed to 35

26/2/2010
DL2 version, fixed problem which meant accelerometer calibration where not being applied correctly
Enabled Z axis acceleration on serial port
Version number changed to 36

3/3/2010
DL1 version, modification to enable Z axis acceleration on serial port
Version number changed to 36

10/3/2010
Modified firmware so that when RPM storage is enabled from internal sensor the incoming serial data is ignored.
When internal storage is disabled the serial data will be used in it's place